package com.example.java250729_springboot.mapper;

import com.example.java250729_springboot.entity.MessageInfo;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface MessageInfoMapper {
    @Insert("insert into message_info (`from`,`to`,`message`) values(#{from},#{to},#{message}) ")
    Integer insert(MessageInfo messageInfo);
    @Select("select * from message_info where delete_flag=0")
    List<MessageInfo> selectAll();
}




































